projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b162a8c
)
(dos_cleanup): Flush and fsync the termscript stream.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 3 Dec 1998 09:41:09 +0000
(09:41 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 3 Dec 1998 09:41:09 +0000
(09:41 +0000)
src/dosfns.c
patch
|
blob
|
history
diff --git
a/src/dosfns.c
b/src/dosfns.c
index b1ba6063a3777852c9728cda856690043ed99cf3..d0f5f18dd01c4d7d3bfa240cd8528be6348e8c2d 100644
(file)
--- a/
src/dosfns.c
+++ b/
src/dosfns.c
@@
-469,6
+469,13
@@
dos_cleanup (void)
#ifndef HAVE_X_WINDOWS
restore_parent_vm_title ();
#endif
+ /* Make sure the termscript file is committed, in case we are
+ crashing and some vital info was written there. */
+ if (termscript)
+ {
+ fflush (termscript);
+ fsync (fileno (termscript));
+ }
}
/*